import {contextBridge, ipcRenderer} from "electron";
import {EventApi} from "./renderer";

contextBridge.exposeInMainWorld('scriptApi', {
  event1: (msg:string) => {
    return ipcRenderer.invoke('event1', msg);
  }
} as EventApi);